package com.pzb.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 * 
 * @author pzb
 */
@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatConfig
{
    /** 项目名称 */
    private static String appId;

    /** 版本 */
    private static String appSecret;

    /** 版权年份 */
    private static String aesKey;

    /** 上传路径 */
    private static String componentToken;

    public static String getAppId() {
        return appId;
    }

    public  void setAppId(String appId) {
        WechatConfig.appId = appId;
    }

    public static String getAppSecret() {
        return appSecret;
    }

    public  void setAppSecret(String appSecret) {
        WechatConfig.appSecret = appSecret;
    }

    public static String getAesKey() {
        return aesKey;
    }

    public  void setAesKey(String aesKey) {
        WechatConfig.aesKey = aesKey;
    }

    public static String getComponentToken() {
        return componentToken;
    }

    public  void setComponentToken(String componentToken) {
        WechatConfig.componentToken = componentToken;
    }
}
